import requests


#requests库使用代理  
headers = {
    "User-Agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100 Safari/537.36",
}

proxy = {
    'http':'123.207.217.139:1080'
}

url = 'http://httpbin.org/ip'
response = requests.get(url,headers=headers,proxies=proxy)

print(response.content.decode('utf-8'))